﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/PublishMaster.Master"
    CodeBehind="Detail.aspx.cs" Inherits="CSP.Web.Service.Detail" %>
    
<asp:Content ID="CSPHead" ContentPlaceHolderID="CSPHead" runat="server">
    <title>
        北京<%=PageTitle%>
        - 信然贷网</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="keywords" content="<%=PageKeyWords %>" />
    <meta name="description" content="<%=PageDescription %>" />
    <meta name="author" content="" />
</asp:Content>
<asp:Content ID="CSPStyleAndScript" ContentPlaceHolderID="CSPStyleAndScript" runat="server">
    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;mini=1&amp;uid=6439249"></script>
    <script type="text/javascript" id="bdshell_js"></script>
    <script type="text/javascript">

        $().ready(function(){
            CSP_ServiceDetail.LB_TitleId="<%=LB_Title.ClientID %>";
            CSP_ServiceDetail.ImageHeadId="<%=Img_Head.ClientID %>";      //
            CSP_ServiceDetail.IsCreateOrder=<%=string.IsNullOrWhiteSpace(ContactPhone)?"true":"false" %>; //是否下订单
            CSP_ServiceDetail.ServiceId="<%=Request["id"] %>"; //服务ID
            CSP_ServiceDetail.ContactPhone="<%=ContactPhone %>";
        });
                
    </script>
</asp:Content>
<asp:Content ID="CSPMain" ContentPlaceHolderID="CSPMain" runat="server">
    <div class="crumbs">
                    <a href="http://www.tongshuya.com" >首页</a> &gt; <a id="LinkType" EnableViewState="false" runat="server" >分类</a> &gt; <asp:Label ID="LB_Crumbs_Title" runat="server" Text=""></asp:Label>
     </div>
    <div class="detail-summary clearfix">
        <div class="course-gallery">
            <div class="pic">
                <a href="#">
                    <img src="/images/detail_03.jpg" width="280" height="280" EnableViewState="false" runat="server" id="Img_Head"
                        alt=""></a>
            </div>
            <div class="thumbs">
                <ul>
                    <li class="current">
                        <img src="" width="46" height="46"  onclick="CSP_ServiceDetail.SetHeadImage(this)" EnableViewState="false" id="Img_Head1" runat="server"
                            alt=""></li>
                    <li>
                        <img src="" width="46" height="46" onclick="CSP_ServiceDetail.SetHeadImage(this)" EnableViewState="false" id="Img_Head2" runat="server"
                            alt=""></li>
                    <li>
                        <img src="" width="46" height="46" onclick="CSP_ServiceDetail.SetHeadImage(this)" EnableViewState="false" id="Img_Head3" runat="server"
                            alt=""></li>
                    <li>
                        <img src="" width="46" height="46" onclick="CSP_ServiceDetail.SetHeadImage(this)" EnableViewState="false" id="Img_Head4" runat="server"
                            alt=""></li>
                    <li>
                        <img src="" width="46" height="46" onclick="CSP_ServiceDetail.SetHeadImage(this)" EnableViewState="false" id="Img_Head5" runat="server"
                            alt=""></li>
                </ul>
            </div>
            <div class="bdshare-wrap">
                <!-- Baidu Button BEGIN -->
                <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
                    <span class="bds_more">分享到：</span> <a class="bds_qzone"></a><a class="bds_tsina">
                    </a><a class="bds_tqq"></a><a class="bds_renren"></a><a class="bds_douban"></a><a
                        class="shareCount"></a>
                </div>
                <!-- Baidu Button END -->
            </div>
        </div>
        <!-- course-gallery-->
        <div class="detail-property">
            <h1>
                <asp:Label ID="LB_Title" EnableViewState="false" runat="server" Text=""></asp:Label></h1>
            <p class="browse-num">
                浏览次数：5687</p>
            <ul class="course-info">
                <li class="property"><span class="name">现 价：</span>
                    <div class="value">
                        <strong class="price">
                            <asp:Label ID="LB_Price" EnableViewState="false" runat="server" Text=""></asp:Label>
                        </strong>￥元/<asp:Label ID="LB_PriceUnit" EnableViewState="false" runat="server" Text=""></asp:Label></div>
                </li>
                <li class="property" runat="server" EnableViewState="false" id="L_OriginalPrice"><span class="name">原 价：</span>
                    <div class="value">
                        <del>
                            <asp:Label ID="LB_OriginalPrice" EnableViewState="false" runat="server" Text=""></asp:Label>
                        </del><strong>节省<asp:Label ID="LB_SaveMoney" EnableViewState="false" runat="server" Text=""></asp:Label></strong></div>
                </li>
                <%--          <li class="property"><span class="name">预 约 数：</span>
                    <div class="value">
                        <strong class="book-num">124</strong>人</div>
                </li>--%>
                <li class="property"><span class="name">剩余数量：</span>
                    <div class="value">
                        <asp:Label ID="LB_SurplusEnjoyCount" EnableViewState="false" runat="server" Text=""></asp:Label></div>
                </li>
                <li class="property"><span class="name">开班人数：</span>
                    <div class="value">
                        <asp:Label ID="LB_ClassOfMemberNumber" EnableViewState="false" runat="server" Text=""></asp:Label>人</div>
                </li>
                <li class="property"><span class="name">年 龄 段：</span>
                    <div class="value">
                        <asp:Label ID="LB_AgeStart" runat="server" EnableViewState="false" Text=""></asp:Label>-<asp:Label ID="LB_AgeEnd"
                            runat="server" Text=""></asp:Label>
                        岁</div>
                </li>
                <li class="property"><span class="name">服务区域：</span>
                    <div class="value local">
                        <a href="" runat="server" id="Link_Province">
                            <asp:Label ID="LB_Province" EnableViewState="false" runat="server" Text=""></asp:Label></a> > <a href="" runat="server" id="Link_City">
                                <asp:Label ID="LB_City" EnableViewState="false" runat="server" Text=""></asp:Label></a> > <a href="" runat="server" id="Link_County">
                                    <asp:Label ID="LB_County" EnableViewState="false" runat="server" Text=""></asp:Label></a>
                        <asp:Label ID="LB_Street" runat="server" EnableViewState="false" Text=""></asp:Label>
                    </div>
                </li>
                <li class="property"><span class="name">地图查看：</span>
                    <div class="value">
                        <a  id="LookForMap" runat="server" EnableViewState="false" title="点击查看" class="ico i-local"></a>
                    </div>
                </li>
                <li class="property mt10"><span class="name"></span>
                    <div class="value">
                        <a href="javascript:CSP_ServiceDetail.CSP_Order();" title="免费预约" class="ui-btn-buy">免费预约</a> <a href="javascript:CSP_ServiceDetail.BookMarkSite();"
                            title="加入收藏" class="ui-btn-collection">加入收藏</a>
                    </div>
                </li>
                <li class="property ">
                    <div class="msg">
                        <p class="tips">
                            预约后凭手机号或预约号即可获得<b class="num"><asp:Label ID="LB_Privilege" runat="server" Text="Label"></asp:Label>元</b>的优惠。
                            <br>
                            已有<b class="num"><asp:Label ID="LB_ReservationNum" EnableViewState="false" runat="server" Text="Label"></asp:Label></b>人预约了该课程哦，赶紧来预约吧！<a
                                class="fc-blue" target="_blank" href="help/reservation">为什么预约?</a>
                        </p>
                    </div>
                </li>
            </ul>
            <CSP_U:ServiceShopInfo runat="server" IsShowConsumeCredit="false" ID="U_ServiceShopInfo" />
            <!-- enterprise-info -->
        </div>
        <!-- detail-property -->
    </div>
    <div class="clearfix">
        <div class="detail-aside">
            <div class="contact">
                <div class="box2">
                    <div class="box2-hd">
                        <div class="box2-tit">
                            <h3>
                                <a href="#">客服在线</a></h3>
                        </div>
                    </div>
                    <div class="box2-bd">
                        <div id="Div_Phone" runat="server" EnableViewState="false">
                            <img src="/images/phone.png" alt="联系电话" /><span>电话：<asp:Label ID="LB_Phone" EnableViewState="false" runat="server"
                                Text=""></asp:Label></span></div>
                        <asp:Repeater ID="R_ContactWay" ViewStateMode="Disabled" EnableViewState="false" runat="server">
                            <HeaderTemplate>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <p>
                                    <%# Eval("NickName")%>：<a href='<%#GetContactURL(Eval("Address").ToString(),Convert.ToInt32(Eval("Type").ToString()),1) %>'
                                        target="_blank"><img border="0" align="absmiddle" title="点击这里给我发消息" alt="点击这里给我发消息"
                                            src='<%#GetContactURL(Eval("Address").ToString(),Convert.ToInt32(Eval("Type").ToString()),0) %>'></a></p>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                <!--box2-->
            </div>
            <!-- contact -->
            <div class="recommend mt10">
                <div class="box2">
                    <div class="box2-hd">
                        <div class="box2-tit">
                            <h3>
                                <a href="#">相关课程推荐</a></h3>
                        </div>
                        <div class="box2-act">
                            <a href="#">更多&gt;&gt;</a></div>
                    </div>
                    <div class="box2-bd">
                        <ul class="recommend-list">
                            <asp:Repeater ID="R_ServiceInfo" runat="server" EnableViewState="false">
                                <ItemTemplate>
                                    <li><span class="pic"><a href="/detail/<%# Eval("Id") %>.shtml">
                                        <img src="<%#Eval("FilePath") %>S_<%#Eval("FileName") %>" width="95" height="80"
                                            alt="<%# Eval("Title") %>">
                                    </a></span>
                                        <div class="tips">
                                            <div class="tips-text">
                                                <h3>
                                                    <a href="/detail/<%# Eval("Id") %>.shtml">
                                                        <%# Eval("Title") %></a></h3>
                                                <p>
                                                    执教：<a href="/detail/<%# Eval("Id") %>.shtml"><%# Eval("UserName") %></a> <a href="#" class="ico <%#GetStyleByAuthentication(Convert.ToInt32(Eval("PersonalAuthentication")), Convert.ToInt32(Eval("EnterpriseAuthentication")))%>"
                                                        title="<%#GetCNNameByAuthentication(Convert.ToInt32(Eval("PersonalAuthentication")), Convert.ToInt32(Eval("EnterpriseAuthentication")))%>">
                                                    </a>
                                                </p>
                                                <p>
                                                    价格：￥<strong><%# GetPriceByPriceTypeAndPriceAndPriceStartAndPriceEnd(Convert.ToInt32(Eval("PriceType")), Convert.ToDecimal(Eval("Price")), Convert.ToDecimal(Eval("PriceStart")), Convert.ToDecimal(Eval("PriceEnd")))%></span>/<%# Eval("PriceUnit")%></strong>元/月</p>
                                            </div>
                                            <div class="tips-left diamond">
                                            </div>
                                        </div>
                                        <p class="tech-ability">
                                            执教能力：<span class="ui-star ui-star-lv<%#(Convert.ToInt32(Eval("ServiceAbility"))).ToString() %>"></span><span
                                                class="score"><i><%#Convert.ToDecimal(Eval("ServiceAbility")).ToString("0.0") %></i>分</span></p>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                        <div style="display: none">
                        </div>
                    </div>
                </div>
                <!--box2-->
            </div>
            <!-- recommend -->
        </div>
        <!-- detail-aside -->
        <div class="course-attributes">
            <div class="tabs">
                <div class="tabs-nd">
                    <ul class="tabs-hd" id="DetailTabs">
                        <li id="SelectTeachingDetail" class="trigger current"><a href="javascript:CSP_ServiceDetail.ShowCurrentTab('TeachingDetail')">
                            执教详情</a> </li>
                        <li id="SelectTotalRate" class="trigger"><a href="javascript:CSP_ServiceDetail.ShowCurrentTab('TotalRate')">
                            累计评价</a> </li>
                        <li id="SelectAppointmentRecord" class="trigger"><a href="javascript:CSP_ServiceDetail.ShowCurrentTab('AppointmentRecord')">
                            预约记录</a> </li>
                        <li id="SelectAuthentication" class="trigger"><a href="javascript:CSP_ServiceDetail.ShowCurrentTab('Authentication')">
                            相关证书</a> </li>
                    </ul>
                </div>
                <div class="tabs-bd">
                    <div class="tabs-panel" id="TeachingDetail">
                        <ul class="course-option">
                            <li>课程类型：<asp:Label ID="LB_ServiceType" EnableViewState="false" runat="server" Text=""></asp:Label></li>
                            <li>开课方式：<asp:Label ID="LB_ClassType" EnableViewState="false" runat="server" Text=""></asp:Label></li>
                            <li>课程有效期：<asp:Label ID="LB_ClassValidityStart" EnableViewState="false" runat="server" Text=""></asp:Label>至<asp:Label
                                ID="LB_ClassValidityEnd" EnableViewState="false" runat="server" Text=""></asp:Label></li>
                        </ul>
                        <div class="custom-cont">
                            <div runat="server" EnableViewState="false" id="DIV_Content">
                            </div>
                        </div>
                    </div>
                    <div style="" id="TotalRate" class="tabs-panel">
                        <div class="panel-hd">
                            <h3>
                                累计评价</h3>
                        </div>
                        <CSP_U:CSPRateList ID="U_CSPRateList" runat="server" />
                    </div>
                    <div style="" id="AppointmentRecord" class="tabs-panel">
                        <div class="panel-hd">
                            <h3>
                                预约记录</h3>
                        </div>
                        <CSP_U:AppointmentRecord ID="U_AppointmentRecord" runat="server" />
                    </div>
                    <div style="" id="Authentication" class="tabs-panel">
                        <div class="panel-hd">
                            <h3>
                                相关证书</h3>
                        </div>
                        <asp:Repeater ID="R_Authentication" ViewStateMode="Disabled"  EnableViewState="false" runat="server">
                            <HeaderTemplate>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <img title="<%#Eval("name") %>" src="/<%#Eval("filepath").ToString()+Eval("filename").ToString() %>" />
                                <br />
                            </ItemTemplate>
                            <FooterTemplate>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
